from middleware import SpiderMiddleWare, DropModel


class MiddleWare(SpiderMiddleWare):
    def process_model(self, model):
        print(model.title.value)
        if model.title.value == "csdn":
            raise DropModel
